import nonebot.default_config as Config
# bot config
Config.HOST = '0.0.0.0'
Config.PORT = 8080
Config.COMMAND_START = {'>'}
Config.COMMAND_SEP = {'.'}

# API
API = {
    'url_prefix': '/api'
}

# SYSTEM Name
SYSTEM_NAME = 'Q群管理平台'

# pagination
Pagination = {
    'max_per_page': int(200),
    'default_per_page': int(20)
}


# session config
Session = {
    'expire_duration': 7200 # seconds
}

# redis config
Redis = {
    'host': '127.0.0.1',
    'port': 6379,
    'password': '',
    'encoding': 'utf-8',
    'decode_responses': True
}

# mysql configuration

DB = {
    'protocol': 'mysql+pymysql',
    'user': 'root',     #数据库用户名
    'password': '123456', # 数据库密码
    'addr': '',    #数据库地址
    'port': '3306',
    'dbname': 'qtool', 
    'max_connections': 20,
    'charset': 'utf8'
}

# 密码加密相关配置
Crypt = {
    'salt': '7dfc74012283',
    'key': '8fOUGKUZjnpnVXIO'
}


# SMTP
SMTP = {
    'host': 'grinder.kserv.cn',
    'port': 10025,
    'user': 'noreply',
    'pass': 'abcd1234'
}
